import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const MENU: AppRouteRecordRaw = {
  path: '/menumanage',
  name: 'menumanage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.menuManage',
    icon: 'icon-tool',
    requiresAuth: true,
    order: 1100,
  },
  children: [
    {
      path: '/adminmenu',
      name: 'Adminmenu',
      component: () => import('@/views/menu/list.vue'),
      meta: {
        locale: 'menu.adminMenu',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default MENU;
